package com.examplemartin.jpademo.pojo.po.repository.sell;

import com.examplemartin.jpademo.pojo.admin.BaseEntity;
import com.examplemartin.jpademo.pojo.po.good.GoodPO;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 销售出库单明细实体
 */

@Data
@EqualsAndHashCode(callSuper = true)
@Entity(name = "t_selloutdetail")
public class SellOutDetailPO extends BaseEntity implements Serializable {
  // 销售出库单 one
  @ManyToOne
  private SellOutPO sellOutPO;


  // 商品 one
  @ManyToOne
  private GoodPO goodPO;

  // 出货数量
  private Integer goodcount;

  @Override
  public String toString() {
    return "SellOutDetailPO{" +
            "sellOutPO=" + sellOutPO +
            ", goodPO=" + goodPO +
            ", goodcount=" + goodcount +
            '}';
  }
}
